/*
* @Author: wanghongfucoder
* @Date:   2017-02-16 10:21:54
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-02-16 10:28:54
*/
import java.util.List;
import java.util.ArrayList;
public class CriteriaSingle implements Criteria {

	public List<Person> meetCriterial(List<Person> persons){
	List<Person> singlePersons = new ArrayList<Person>();
	for (Person person : persons) {
		if (person.getMaritalStatus().equalsIgnoreCase("SINGLE")) {
			singlePersons.add(person);
		}
	}
	return singlePersons;
	}
}